#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT(log4cpp, 0.0.1, sihai@taobao.com)
AM_INIT_AUTOMAKE(log4cpp, 0.0.1, sihai@taobao.com)
AC_CONFIG_SRCDIR([src/log4cpp.cpp])
AC_CONFIG_HEADERS([config.h])

AC_PREFIX_DEFAULT(/usr/local/log4cpp)

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

#AC_PROG_RANLIB

AC_PROG_LIBTOOL                                         ### Added if dynamic libary used

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])

AC_OUTPUT(Makefile src/Makefile src/inc/Makefile src/testcase/Makefile)
